﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class MarketSettingMetaInfoConfig : EntityTypeConfiguration<MarketSettingMetaInfo>
    {
        public MarketSettingMetaInfoConfig()
        {
            ToTable("Himall_MarketSettingMeta");
            Property(item => item.MetaKey).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.MetaValue).HasColumnType("text");
            HasRequired(x => x.Himall_MarketSetting).WithMany(x => x.Himall_MarketSettingMeta).HasForeignKey(x => x.MarketId);
        }
    }
}
